PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Waveform / Wire Mirror / Martin - QBikal - Surface Turbulence IIo10 (by hakanh mash-up).milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=2 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=4 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=0.527 |
| 27 | fWaveSmoothing=0.450 |
| 28 | fWaveParam=0.000 |
| 29 | fModWaveAlphaStart=0.000 |
| 30 | fModWaveAlphaEnd=1.320 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.800 |
| 45 | wave_g=0.490 |
| 46 | wave_b=1.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.015 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.850 |
| 64 | mv_r=0.500 |
| 65 | mv_g=0.500 |
| 66 | mv_b=0.500 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=0.300 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=506 |
| 77 | wavecode_0_sep=116 |
| 78 | wavecode_0_bSpectrum=1 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=1 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=1.07408 |
| 83 | wavecode_0_smoothing=0.00000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=0.700 |
| 88 | wave_0_per_point1= |
| 89 | wave_0_per_point2=n = int((reg00+.5)*sample); |
| 90 | wave_0_per_point3= |
| 91 | wave_0_per_point4=m = 30001+n/(reg00/reg01); |
| 92 | wave_0_per_point5=gmegabuf(m) = (value1+value2); |
| 93 | wave_0_per_point6= |
| 94 | wave_0_per_point7=x = gmegabuf(10000+n); |
| 95 | wave_0_per_point8=y = gmegabuf(15000+n); |
| 96 | wave_0_per_point9=a = gmegabuf(20000+n); |
| 97 | wave_0_per_point10= |
| 98 | wave_0_per_point11=b = min(max(gmegabuf(25000+n),0),1); |
| 99 | wave_0_per_point12=r = 1-b; |
| 100 | wave_0_per_point13=g = 0.5; |
| 101 | wavecode_1_enabled=1 |
| 102 | wavecode_1_samples=506 |
| 103 | wavecode_1_sep=0 |
| 104 | wavecode_1_bSpectrum=0 |
| 105 | wavecode_1_bUseDots=0 |
| 106 | wavecode_1_bDrawThick=1 |
| 107 | wavecode_1_bAdditive=0 |
| 108 | wavecode_1_scaling=0.89152 |
| 109 | wavecode_1_smoothing=0.82000 |
| 110 | wavecode_1_r=1.000 |
| 111 | wavecode_1_g=1.000 |
| 112 | wavecode_1_b=1.000 |
| 113 | wavecode_1_a=1.000 |
| 114 | wave_1_per_point1=n = int((reg00+.5)*sample) +reg00; |
| 115 | wave_1_per_point2= |
| 116 | wave_1_per_point3=x = gmegabuf(10000+n); |
| 117 | wave_1_per_point4=y = gmegabuf(15000+n); |
| 118 | wave_1_per_point5=a = gmegabuf(20000+n); |
| 119 | wave_1_per_point6= |
| 120 | wave_1_per_point7=b = min(max(gmegabuf(25000+n),0),1); |
| 121 | wave_1_per_point8=r = 1-b; |
| 122 | wave_1_per_point9=g = 0.5; |
| 123 | wave_1_per_point10= |
| 124 | wavecode_2_enabled=1 |
| 125 | wavecode_2_samples=506 |
| 126 | wavecode_2_sep=0 |
| 127 | wavecode_2_bSpectrum=0 |
| 128 | wavecode_2_bUseDots=0 |
| 129 | wavecode_2_bDrawThick=1 |
| 130 | wavecode_2_bAdditive=0 |
| 131 | wavecode_2_scaling=0.89152 |
| 132 | wavecode_2_smoothing=0.82000 |
| 133 | wavecode_2_r=1.000 |
| 134 | wavecode_2_g=1.000 |
| 135 | wavecode_2_b=1.000 |
| 136 | wavecode_2_a=1.000 |
| 137 | wave_2_per_point1=n = int((reg00+.5)*sample)+2*reg00; |
| 138 | wave_2_per_point2= |
| 139 | wave_2_per_point3= |
| 140 | wave_2_per_point4=x = gmegabuf(10000+n); |
| 141 | wave_2_per_point5=y = gmegabuf(15000+n); |
| 142 | wave_2_per_point6=a = gmegabuf(20000+n); |
| 143 | wave_2_per_point7= |
| 144 | wave_2_per_point8=b = min(max(gmegabuf(25000+n),0),1); |
| 145 | wave_2_per_point9=r = 1-b; |
| 146 | wave_2_per_point10=g = 0.5; |
| 147 | wave_2_per_point11= |
| 148 | wavecode_3_enabled=1 |
| 149 | wavecode_3_samples=506 |
| 150 | wavecode_3_sep=0 |
| 151 | wavecode_3_bSpectrum=1 |
| 152 | wavecode_3_bUseDots=0 |
| 153 | wavecode_3_bDrawThick=1 |
| 154 | wavecode_3_bAdditive=0 |
| 155 | wavecode_3_scaling=1.00000 |
| 156 | wavecode_3_smoothing=0.50000 |
| 157 | wavecode_3_r=1.000 |
| 158 | wavecode_3_g=1.000 |
| 159 | wavecode_3_b=1.000 |
| 160 | wavecode_3_a=1.000 |
| 161 | wave_3_per_point1=n = int((reg00-.5)*sample)+3*reg00; |
| 162 | wave_3_per_point2= |
| 163 | wave_3_per_point3= |
| 164 | wave_3_per_point4=x = gmegabuf(10000+n); |
| 165 | wave_3_per_point5=y = gmegabuf(15000+n); |
| 166 | wave_3_per_point6=a = gmegabuf(20000+n); |
| 167 | wave_3_per_point7= |
| 168 | wave_3_per_point8=b = min(max(gmegabuf(25000+n),0),1); |
| 169 | wave_3_per_point9=r = 1-b; |
| 170 | wave_3_per_point10=g = 0.5; |
| 171 | shapecode_0_enabled=0 |
| 172 | shapecode_0_sides=4 |
| 173 | shapecode_0_additive=1 |
| 174 | shapecode_0_thickOutline=0 |
| 175 | shapecode_0_textured=1 |
| 176 | shapecode_0_num_inst=1 |
| 177 | shapecode_0_x=0.500 |
| 178 | shapecode_0_y=0.500 |
| 179 | shapecode_0_rad=2.37185 |
| 180 | shapecode_0_ang=0.00000 |
| 181 | shapecode_0_tex_ang=1.57080 |
| 182 | shapecode_0_tex_zoom=0.93101 |
| 183 | shapecode_0_r=0.000 |
| 184 | shapecode_0_g=1.000 |
| 185 | shapecode_0_b=1.000 |
| 186 | shapecode_0_a=0.400 |
| 187 | shapecode_0_r2=0.000 |
| 188 | shapecode_0_g2=1.000 |
| 189 | shapecode_0_b2=0.000 |
| 190 | shapecode_0_a2=0.000 |
| 191 | shapecode_0_border_r=1.000 |
| 192 | shapecode_0_border_g=1.000 |
| 193 | shapecode_0_border_b=0.000 |
| 194 | shapecode_0_border_a=0.000 |
| 195 | shapecode_1_enabled=0 |
| 196 | shapecode_1_sides=12 |
| 197 | shapecode_1_additive=1 |
| 198 | shapecode_1_thickOutline=0 |
| 199 | shapecode_1_textured=1 |
| 200 | shapecode_1_num_inst=1 |
| 201 | shapecode_1_x=0.300 |
| 202 | shapecode_1_y=0.800 |
| 203 | shapecode_1_rad=1.06345 |
| 204 | shapecode_1_ang=0.00000 |
| 205 | shapecode_1_tex_ang=1.63363 |
| 206 | shapecode_1_tex_zoom=0.46617 |
| 207 | shapecode_1_r=1.000 |
| 208 | shapecode_1_g=1.000 |
| 209 | shapecode_1_b=0.000 |
| 210 | shapecode_1_a=1.000 |
| 211 | shapecode_1_r2=0.000 |
| 212 | shapecode_1_g2=0.000 |
| 213 | shapecode_1_b2=0.000 |
| 214 | shapecode_1_a2=1.000 |
| 215 | shapecode_1_border_r=1.000 |
| 216 | shapecode_1_border_g=0.000 |
| 217 | shapecode_1_border_b=0.000 |
| 218 | shapecode_1_border_a=0.000 |
| 219 | shapecode_2_enabled=0 |
| 220 | shapecode_2_sides=13 |
| 221 | shapecode_2_additive=1 |
| 222 | shapecode_2_thickOutline=0 |
| 223 | shapecode_2_textured=0 |
| 224 | shapecode_2_num_inst=5 |
| 225 | shapecode_2_x=0.650 |
| 226 | shapecode_2_y=0.380 |
| 227 | shapecode_2_rad=0.57049 |
| 228 | shapecode_2_ang=0.00000 |
| 229 | shapecode_2_tex_ang=0.00000 |
| 230 | shapecode_2_tex_zoom=0.73678 |
| 231 | shapecode_2_r=1.000 |
| 232 | shapecode_2_g=0.000 |
| 233 | shapecode_2_b=0.000 |
| 234 | shapecode_2_a=0.700 |
| 235 | shapecode_2_r2=0.000 |
| 236 | shapecode_2_g2=0.000 |
| 237 | shapecode_2_b2=0.000 |
| 238 | shapecode_2_a2=0.000 |
| 239 | shapecode_2_border_r=0.500 |
| 240 | shapecode_2_border_g=0.500 |
| 241 | shapecode_2_border_b=0.000 |
| 242 | shapecode_2_border_a=0.000 |
| 243 | shapecode_3_enabled=0 |
| 244 | shapecode_3_sides=14 |
| 245 | shapecode_3_additive=1 |
| 246 | shapecode_3_thickOutline=1 |
| 247 | shapecode_3_textured=1 |
| 248 | shapecode_3_num_inst=1 |
| 249 | shapecode_3_x=0.600 |
| 250 | shapecode_3_y=0.550 |
| 251 | shapecode_3_rad=0.97237 |
| 252 | shapecode_3_ang=1.25664 |
| 253 | shapecode_3_tex_ang=0.00000 |
| 254 | shapecode_3_tex_zoom=0.34933 |
| 255 | shapecode_3_r=1.000 |
| 256 | shapecode_3_g=0.600 |
| 257 | shapecode_3_b=0.000 |
| 258 | shapecode_3_a=1.000 |
| 259 | shapecode_3_r2=0.000 |
| 260 | shapecode_3_g2=0.000 |
| 261 | shapecode_3_b2=1.000 |
| 262 | shapecode_3_a2=0.000 |
| 263 | shapecode_3_border_r=0.200 |
| 264 | shapecode_3_border_g=0.700 |
| 265 | shapecode_3_border_b=0.500 |
| 266 | shapecode_3_border_a=0.000 |
| 267 | per_frame_init_1=index = 0; |
| 268 | per_frame_init_2=loop (70000, |
| 269 | per_frame_init_3= megabuf(index) = 0; |
| 270 | per_frame_init_4= gmegabuf(index) = 0; |
| 271 | per_frame_init_5= index = index + 1; |
| 272 | per_frame_init_6=); |
| 273 | per_frame_init_7= |
| 274 | per_frame_init_8=zang = 1; |
| 275 | per_frame_init_9= |
| 276 | per_frame_init_10=yang = 0; |
| 277 | per_frame_init_11=zang = 2; |
| 278 | per_frame_1=xlen = 45; ylen = 45; flen = 20; reg00 = xlen*ylen/4; reg01=reg00/4; |
| 279 | per_frame_2=dec_med = 1-0.06*30/fps; dec_slow = 1-0.02*30/fps; dec_f = pow (0.8, 30/fps); |
| 280 | per_frame_3=q30 = dec_slow; |
| 281 | per_frame_4=smooth = max(1,pow(6,fps/30)-2); // >= 0; Ausbreitungsgeschwindigkeit |
| 282 | per_frame_5= |
| 283 | per_frame_6=//"Classic" beat reaction |
| 284 | per_frame_7=cbeat = bass+mid+treb; |
| 285 | per_frame_8=decc = if (vol>cbeat,0.8,dec_med); |
| 286 | per_frame_9=vol = vol * decc + (1-decc)*cbeat; |
| 287 | per_frame_10=avg = avg*dec_slow + cbeat*(1-dec_slow); |
| 288 | per_frame_11=is_beat = above(cbeat, 1.5*avg) * above (time, tc0+.2); |
| 289 | per_frame_12=tc0 = if (bor(is_beat, bd_bt),time,tc0); |
| 290 | per_frame_13=peak = if (is_beat,cbeat,peak*dec_med); |
| 291 | per_frame_14= |
| 292 | per_frame_15= |
| 293 | per_frame_16=//Gleichanteil entfernen und normalisieren |
| 294 | per_frame_17=ind = 0; sum = 0; amp = 0.01; |
| 295 | per_frame_18=loop (reg01, |
| 296 | per_frame_19= sum = sum + gmegabuf(ind+30000)/(reg01); |
| 297 | per_frame_20= amp = amp + pow(gmegabuf(ind+30000),2); |
| 298 | per_frame_21= ind = ind+1; |
| 299 | per_frame_22=); |
| 300 | per_frame_23=ind = 0; amp_= amp_*dec_med + (1-dec_med)*sqrt(amp)/reg01*600; |
| 301 | per_frame_24=loop (reg01, |
| 302 | per_frame_25= megabuf(ind+30000)= (gmegabuf(ind+30000)-sum)/amp_; |
| 303 | per_frame_26= ind = ind+1; |
| 304 | per_frame_27=); |
| 305 | per_frame_28= |
| 306 | per_frame_29=// Spectrum of spectrum ! |
| 307 | per_frame_30=index2 = 0; |
| 308 | per_frame_31=loop(flen, //Frequency step |
| 309 | per_frame_32= index=0; real= 0; imag = 0; |
| 310 | per_frame_33= loop (flen, |
| 311 | per_frame_34= real = real + cos(index/flen*6.28*index2)*megabuf(index*reg01/8+30002); |
| 312 | per_frame_35= imag = imag + sin(index/flen*6.28*index2)*megabuf(index*reg01/8+30002); |
| 313 | per_frame_36= index=index+1; |
| 314 | per_frame_37= ); |
| 315 | per_frame_38= megabuf(10000+index2)= megabuf(10000+index2) * dec_f + real; |
| 316 | per_frame_39= megabuf(15000+index2)= megabuf(15000+index2) * dec_f + imag; |
| 317 | per_frame_40= index2 = index2+1; |
| 318 | per_frame_41= ); |
| 319 | per_frame_42= |
| 320 | per_frame_43=//Anregung |
| 321 | per_frame_44=ind = 1; |
| 322 | per_frame_45=loop (flen/2, |
| 323 | per_frame_46= cx = megabuf(10000+ind); |
| 324 | per_frame_47= cy = megabuf(15000+ind); |
| 325 | per_frame_48= yind = -1; |
| 326 | per_frame_49= loop (3, |
| 327 | per_frame_50= xind = -1; |
| 328 | per_frame_51= loop (3, |
| 329 | per_frame_52= ox = ((cx+.5)*xlen+xind)%xlen; |
| 330 | per_frame_53= oy = ((cy+.5)*ylen+yind)%ylen; |
| 331 | per_frame_54= amp = (cx*cx+cy*cy)*3; |
| 332 | per_frame_55= megabuf (oy*ylen+ox) = megabuf (oy*ylen+ox) |
| 333 | per_frame_56= - 2*30/fps*sqrt(amp)*above(amp,.02)/(1+xind*xind+yind*yind); |
| 334 | per_frame_57= xind = xind+1; |
| 335 | per_frame_58= ); |
| 336 | per_frame_59= yind = yind+1; |
| 337 | per_frame_60= ); |
| 338 | per_frame_61= ind = ind+1; |
| 339 | per_frame_62=); |
| 340 | per_frame_63= |
| 341 | per_frame_64=//Simulation |
| 342 | per_frame_65=yind = 0; |
| 343 | per_frame_66=loop (ylen, |
| 344 | per_frame_67= xind = 0; |
| 345 | per_frame_68= loop (xlen, |
| 346 | per_frame_69= megabuf(yind*ylen+xind+5000) = //megabuf ab 5000 ist nur Zwischenspeicher |
| 347 | per_frame_70= dec_med*((gmegabuf(yind*ylen+(xind+1)%xlen) + |
| 348 | per_frame_71= gmegabuf(yind*ylen+(xlen+xind-1)%xlen) + |
| 349 | per_frame_72= gmegabuf(((yind+1)%ylen)*ylen+xind) + |
| 350 | per_frame_73= gmegabuf(((yind+ylen-1)%ylen)*ylen+xind) |
| 351 | per_frame_74= +gmegabuf(yind*ylen+xind)*smooth*4)/(2+2*smooth) - megabuf(yind*ylen+xind)); |
| 352 | per_frame_75= xind = xind+1; |
| 353 | per_frame_76= ); |
| 354 | per_frame_77= yind = yind+1; |
| 355 | per_frame_78=); |
| 356 | per_frame_79= |
| 357 | per_frame_80=//Projektionsparameter |
| 358 | per_frame_81= |
| 359 | per_frame_82=bindex += is_beat; |
| 360 | per_frame_83= |
| 361 | per_frame_84=if (is_beat && (bindex%4==0), ran2 = (rand(100)-50)/50,0 ); |
| 362 | per_frame_85=if (is_beat && (bindex%4==2), ran3 = (rand(100)-50)/50,0 ); |
| 363 | per_frame_86=if (is_beat && (bindex%6==5), ran4 = (rand(100)-50)/50,0 ); |
| 364 | per_frame_87= |
| 365 | per_frame_88=trelx += ran2/fps/18; |
| 366 | per_frame_89=trely += ran3/fps/2; |
| 367 | per_frame_90=trelz += ran4/fps/6; |
| 368 | per_frame_91=zang = 6*sin(trelz); |
| 369 | per_frame_92=xang = 6*sin(zang/5+trelx); |
| 370 | per_frame_93=yang = 6*sin(zang/3*0+trely); |
| 371 | per_frame_94= |
| 372 | per_frame_95=q1 = cos(xang);q2 = sin(xang);q3 = cos(yang); |
| 373 | per_frame_96=q4 = sin(yang);q5 = cos(zang);q6 = sin(zang); |
| 374 | per_frame_97=fov = 1; |
| 375 | per_frame_98= |
| 376 | per_frame_99=//Umkopieren und Projektion |
| 377 | per_frame_100=yind = 0; |
| 378 | per_frame_101=loop (ylen, |
| 379 | per_frame_102= xind = 0; |
| 380 | per_frame_103= loop (xlen, |
| 381 | per_frame_104= ind = yind*ylen+xind; |
| 382 | per_frame_105= megabuf(ind) = gmegabuf(ind); |
| 383 | per_frame_106= gmegabuf(ind) = megabuf(ind+5000); |
| 384 | per_frame_107= oz = yind - ylen/2; //# |
| 385 | per_frame_108= ox = if(bnot(yind%2),xind,xlen-xind-1); |
| 386 | per_frame_109= oy0a = (oy0+oy0a)/2.5; |
| 387 | per_frame_110= oy = gmegabuf(yind*ylen+ox); oy0 = oy; |
| 388 | per_frame_111= ox = ox - xlen/2; |
| 389 | per_frame_112= mx = ox*q5 - oy*q6; my = ox*q6 + oy*q5; |
| 390 | per_frame_113= ox = mx; oy = my; |
| 391 | per_frame_114= mx = ox*q3 + oz*q4; mz = - ox*q4 + oz*q3; |
| 392 | per_frame_115= ox = mx; oz = mz; |
| 393 | per_frame_116= my = oy*q1 - oz*q2; mz = oy*q2 + oz*q1; |
| 394 | per_frame_117= z0 = (10*sin(trelz*14)); |
| 395 | per_frame_118= oy = my; oz = mz+z0; |
| 396 | per_frame_119= gmegabuf(10000+ind) = fov*ox/(oz+60*fov)+.5; |
| 397 | per_frame_120= gmegabuf(15000+ind) = fov*oy/(oz+60*fov)+.5; |
| 398 | per_frame_121= hell= max(min(.5+oy0/4,1),0.2); //Helligkeit |
| 399 | per_frame_122= gmegabuf(20000+ind) = max(min(hell* (.5+ (oy0a-oy0)*0.1),1),0.1); |
| 400 | per_frame_123= gmegabuf(25000+ind) = oy0/16+.5;; |
| 401 | per_frame_124= xind = xind+1; |
| 402 | per_frame_125= ); |
| 403 | per_frame_126= yind = yind+1; |
| 404 | per_frame_127=); |
| 405 | per_frame_128= |
| 406 | per_frame_129=q29 = 10/(z0+15); |
| 407 | per_frame_130=q32 = aspecty; |
| 408 | per_frame_131=q28 = min (vol/3-0.25,1); |
| 409 | per_frame_132=monitor = q28; |
| 410 | per_pixel_1=rot = 0; zoom = 1.1; warp = 0; dy = 0.02; |
| 411 | warp_1=`#define sat saturate |
| 412 | warp_2=`sampler sampler_pw_noise_lq; |
| 413 | warp_3=`float3 color, mus; |
| 414 | warp_4=`float2 uv1, uv2, uv3; |
| 415 | warp_5=`float arg, arg2; |
| 416 | warp_6=` |
| 417 | warp_7=`float aTan2(float y, float x) {float angle; float abs_y = abs(y); |
| 418 | warp_8=`if (x >= 0) {float r = (x - abs_y) / (x + abs_y); angle = 1-r;} |
| 419 | warp_9=`else {float r = (x + abs_y) / (abs_y - x); angle = 3-r; } |
| 420 | warp_10=`angle = angle * .25; |
| 421 | warp_11=`return y < 0 ? -angle : angle;} |
| 422 | warp_12=` |
| 423 | warp_13=` |
| 424 | warp_14=`shader_body { |
| 425 | warp_15=`uv = (uv-0.5)*aspect.xy + 0.5 + (q21-0.5)/2; |
| 426 | warp_16=`float anz = 32; |
| 427 | warp_17=` |
| 428 | warp_18=`uv1 = mul ((uv-0.5),float2x2(q16,q15,-q15,q16)) + 0.5; |
| 429 | warp_19=`//uv1 = (uv1-0.5)*aspect.yx + 0.5; |
| 430 | warp_20=`uv1 = lerp (uv1,uv,q20); |
| 431 | warp_21=` |
| 432 | warp_22=` |
| 433 | warp_23=`//uv1 += float2 (sin(q14), cos (q14))*q21; |
| 434 | warp_24=`uv1 += float2 (q25,q26); |
| 435 | warp_25=` |
| 436 | warp_26=`uv3 = uv1; |
| 437 | warp_27=`uv2 = uv1-0.5; |
| 438 | warp_28=`uv1 = float2 (4*length(uv2),2*q20*aTan2 (abs(uv2.y+q21/4),abs(uv2.x+q22/4))).yx; |
| 439 | warp_29=`uv1 = lerp (uv1,uv3,q23); |
| 440 | warp_30=` |
| 441 | warp_31=`arg = 4*(sat(8*abs(uv1.y-0.5)) * sat(8*abs(uv1.x-0.5-(q15*.7)))) ; |
| 442 | warp_32=`//arg = 64*(abs(uv1.y-0.5)); |
| 443 | warp_33=` |
| 444 | warp_34=`arg2 = pow (4/bass_att*length (cos((uv + float2((q7%16)/16,0))*3*3.1416)),2); |
| 445 | warp_35=` |
| 446 | warp_36=`//arg = arg2; |
| 447 | warp_37=`ret = 1 - pow(arg,1); |
| 448 | warp_38=`ret = exp (-arg*2); |
| 449 | warp_39=` |
| 450 | warp_40=` |
| 451 | warp_41=` |
| 452 | warp_42=` |
| 453 | warp_43=`ret *= 2*normalize(tex2D (sampler_noise_hq,(uv1+q14/32)/16)); |
| 454 | warp_44=`//ret -= 0.8*GetPixel(uv); |
| 455 | warp_45=` |
| 456 | warp_46=`float3 ret0 = lerp(GetPixel(uv_orig),GetBlur1(uv_orig),0.4); |
| 457 | warp_47=`if (q20*q21 > 0.4) {ret = lerp (ret0,ret,q9);} |
| 458 | warp_48=`} |
| 459 | comp_1=`shader_body |
| 460 | comp_2=`{ |
| 461 | comp_3=` float rad_lq = rad * length(texsize.xy)*0.5; |
| 462 | comp_4=` float ang_lq = ang; |
| 463 | comp_5=` float2 uv_temp1 = (uv - 0.5) * texsize.xy; |
| 464 | comp_6=` float rad_hq = length(uv_temp1); |
| 465 | comp_7=` float ang_hq = atan2(-uv_temp1.y, uv_temp1.x); |
| 466 | comp_8=` |
| 467 | comp_9=` float2 uv2 = (uv - 0.5); |
| 468 | comp_10=` float rad2 = rad_lq*0.8; |
| 469 | comp_11=` float ang2 = ang_lq * M_INV_PI_2; |
| 470 | comp_12=` |
| 471 | comp_13=` // ROTATION OVER TIME |
| 472 | comp_14=` #if 1 |
| 473 | comp_15=` ang2 += time*0.025; //rotate over time |
| 474 | comp_16=` #endif |
| 475 | comp_17=` |
| 476 | comp_18=` // FIN TYPE |
| 477 | comp_19=` float fins = 3 + floor(rand_preset.z*5.95); |
| 478 | comp_20=` #if 1 // SHARP FINS |
| 479 | comp_21=` ang2 = frac(ang2*fins)/fins; |
| 480 | comp_22=` // ENABLE THIS TO MAKE THE FINS ALTERNATE: (seamless!) |
| 481 | comp_23=` ang2 = abs(ang2 - 0.5/fins); |
| 482 | comp_24=` #else // COSINE FINS - a bit slow |
| 483 | comp_25=` ang2 = cos(ang2*M_PI_2*fins) * 0.023; |
| 484 | comp_26=` #endif |
| 485 | comp_27=` |
| 486 | comp_28=` // RADIAL KALEIDOSCOPING? |
| 487 | comp_29=` #if 0 |
| 488 | comp_30=` rad2 *= g_fTexSize.z; |
| 489 | comp_31=` // choose one: |
| 490 | comp_32=` //rad2 = lerp(rad2, frac(rad2*3)/3.0, 0.5); |
| 491 | comp_33=` rad2 = cos(rad2*5); |
| 492 | comp_34=` //rad2 = sqrt(rad2)*0.5; |
| 493 | comp_35=` //rad2 += abs(frac(rad2*7)-0.5)/7.0 * 1.15; // stepifier |
| 494 | comp_36=` //rad2 += cos(rad2*61)*0.02; |
| 495 | comp_37=` rad2 *= g_fTexSize.x; |
| 496 | comp_38=` #endif |
| 497 | comp_39=` |
| 498 | comp_40=` ang2 *= M_PI_2; |
| 499 | comp_41=` uv2 = 0.5 + rad2*float2(cos(ang2),sin(ang2))*texsize.zw; |
| 500 | comp_42=` |
| 501 | comp_43=` ret = tex2D(sampler_main, uv2).xyz; |
| 502 | comp_44=` ret *= 1.333; // a little bit of overbright |
| 503 | comp_45=`} |